﻿@model WebApp.CommandModelView

@{ 
WebApp.CommandModelView Model = (WebApp.CommandModelView)Session["commande"];}  
    <a href=""><h2>Détail de la commande</h2></a>
    <div class="menu-content">
        <ul class="nav nav-list">
              
    @{   
        List<Poco.Plat> plats = Model.All_Commande;
                
        foreach (var type in Enum.GetValues(typeof(Poco.TypePlat)))
        {
            List<Poco.Plat> platsByType = Model.getListPlatByType(plats, type.ToString());
            <li class="nav-header">@type.ToString()</li>
                
            foreach (var plat in platsByType)
            {
                if (plat != null)
                {
                    <li><a href="#">@plat.Nom</a></li>
                }
            }
        }                    
                  
    }
        </ul>
        <h4><a href="/Home/Commander">Commander</a></h4>
    </div>